package com.jia.train.seat.request;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalTime;
import java.util.Date;

@Data
public class DailyTripStationSaveRequest {

    private Long id;

    private Date date;

    private String tripCode;

    private Integer index;

    private String name;

    @JsonSerialize(using = ToStringSerializer.class)
    private LocalTime inTime;

    @JsonSerialize(using = ToStringSerializer.class)
    private LocalTime outTime;

    private BigDecimal km;

}
